stylecontext: Make font hack not crash
authorBenjamin Otte <otte@redhat.com>
Sun, 6 Jan 2013 22:08:28 +0000 (23:08 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 7 Jan 2013 00:11:42 +0000 (01:11 +0100)
commit8a644e4f16d792c55df33a96eb3f22070816a67f
tree4a03b476479d2f5797db1cdcf609278c4abd3e55
parent15129ae170cb964fedf0885339b78ee40e468807
stylecontext: Make font hack not crash

It's a lot uglier now, but it shouldn't crash anymore.

We must update the font description for animations, but we can't free it
on query, because some paths call gtk_style_context_get_font() twice in
a row without stopping the use of the first call. So us just creating a
new font description all the time and unreffing the old one is not a
good idea. So we just mere the new one into the old one.

https://bugzilla.gnome.org/show_bug.cgi?id=691186
gtk/gtkstylecontext.c